#include "wuFaderManager.h"

wuFaderManager::wuFaderManager()
{
}

wuFaderManager::~wuFaderManager()
{
}

void wuFaderManager::addBitxo(ofImage *_skin, ofRectangle rect, ofxCvBlob *blob)
{
/*	wuSkin skin;
	skin.setup(_skin, rect);
	skins.push_back(skin);
*/
	if(bBgCaptured)
	{
		fader.setControl(_skin, rect);
	}else
	{
		fader.setBgSkin(_skin, rect);
		bBgCaptured = true;
	}
}

void wuFaderManager::draw(bool bCambiazo)
{
//    for (int i = 0; i < skins.size(); i++)
        fader.draw(bCambiazo);	
}

void wuFaderManager::clear()
{
/*        for (int i = skins.size()-1; i >= 0; i--)
        {
			skins.erase(skins.begin()+i);
		}
*/}


void wuFaderManager::touch(vector <ofPoint> * _fingerList)
{
	fader.touch(_fingerList);
}
